import type { UploadData, WorkbenchData } from "@/types/common"
import { request } from "@/utils/reuqest"

/**
 * 上传接口
 * @param fd 二进制文件数据(FormData)
 * @returns 
 */
export const uploadAPI = (fd: FormData) => {
  return request<UploadData>('/upload', 'POST', fd)
}

/**
 * 获取工作台数据
 * @returns 
 */
export const getWorkbenchDataAPI = () => {
  return request<WorkbenchData>('/home/workbench/info')
}

